package com.examples.intentfilters;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SecondActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.second);
		
		Intent intent = getIntent();
		
		TextView textView = (TextView) findViewById(R.id.textView);
		if (intent != null) {
			textView.setText(intent.getData().toString());
		}
	}
}
